package cn.csg.iotplatform.module.system.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;


@Schema(description = "第三方校验token请求参数")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CheckTokenReqVO {

    @Schema(description = "客户端id", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "门户分配的clientId，如果没有则第三方暂时自定义")
    private String clientId;

    @Schema(description = "账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "123")
    @NotBlank(message = "token不能为空")
    private String token;

}
